package team.star.werespos.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.Instant;

/**
 * FoodInformation class<br/>
 * 菜品信息
 *
 * @author CAI
 * @since 2019/03/25
 */
@TableName("`food_info`")
@Data
@Accessors(chain = true)
public class FoodInformation implements Serializable {
    private static final long serialVersionUID = -806169374869228130L;

    @TableId
    private Integer foodId;

    /**
     * 菜品名称
     */
    private String foodName;

    /**
     * 菜品单价
     */
    private BigDecimal foodPrice;

    /**
     * 菜品描述
     */
    private String foodDesc;

    /**
     * 菜品图片
     */
    private String foodIcon;

    /**
     * 菜品是否有库存，1是
     */
    private Integer foodStock;

    private Integer foodType;

    /**
     * 菜品类型
     */
    private Integer categoryId;

    /**
     * 是否删除，1是
     */
    @JsonIgnore
    @TableLogic
    private Integer isDel;

    /**
     * 创建时间
     */
    @JsonIgnore
    private Instant createTime;

    /**
     * 修改时间
     */
    @JsonIgnore
    private Instant updateTime;


}
